<?php include_component('tree'
                    , 'path'
                    , array('path' => 'Registration form')); ?>
<br/>
<div class="text">
<h2><?php echo __('Registration form'); ?></h2>

<div class="center_content" style="text-align: left; padding: 10px;">
    <?php echo __('To have permission use more services, please fill out the registration form and sign up.')?>
    <br /><br />

    <?php echo form_tag('user/register') ?>
    <?php if( $sf_request->hasErrors() ): ?>
        <p style="color: #FF0000"><?php echo __('The form is not valid because it contains some errors.')?></p><br />
    <?php endif; ?>
    <sup>* <?php echo __('Required fields'); ?></sup><br /><br />

    <?php echo __('Name, nick')?> *
    <?php if( $sf_request->hasError('user[nick]') ): ?>
        <span style="color: #FF0000">&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;<?php echo $sf_request->getError('user[nick]') ?></span>
    <?php endif; ?>
    <?php if( $sf_request->hasError('nick') ): ?>
        <span style="color: #FF0000">&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;<?php echo $sf_request->getError('nick') ?></span>
    <?php endif; ?>
    <br />
    <?php echo input_tag('user[nick]', $sf_params->get('user[nick]'), array('class' => 'input')) ?><br />

    <?php echo __('Email')?> *
    <?php if( $sf_request->hasError('user[email]') ): ?>
        <span style="color: #FF0000">&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;<?php echo $sf_request->getError('user[email]') ?></span>
    <?php endif; ?>
    <br />
    <?php echo input_tag('user[email]', $sf_params->get('user[email]'), array('class' => 'input')) ?><br />

    <?php echo __('password')?> *
    <?php if( $sf_request->hasError('user[password]') ): ?>
        <span style="color: #FF0000">&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;<?php echo $sf_request->getError('user[password]') ?></span>
    <?php endif; ?>
    <br />
    <?php echo input_password_tag('user[password]', '', array('class' => 'input')) ?><br />

    <?php echo __('repeat password')?> *
    <?php if( $sf_request->hasError('user[repeat_password]') ): ?>
        <span style="color: #FF0000">&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;<?php echo $sf_request->getError('user[repeat_password]') ?></span>
    <?php endif; ?>
    <br />
    <?php echo input_password_tag('user[repeat_password]', '', array('class' => 'input')) ?><br />

    <?php //echo input_tag('user[url]', '', array('class' => 'registration_url')) ?>

    <?php echo submit_tag(__('Register')
                        , array('class' => 'submit')) ?>
    </form>

</div>
</div>
<div class="dashed_line">
</div>
<br/>